﻿using System;
using Xoohoo.Models;

namespace Xoohoo.Extensions
{
    public static class UserStatusExtensions
    {
        public static string ToChinese(this UserStatus state)
        {
            string returnValue = String.Empty;
            switch (state)
            {
                case UserStatus.NotSet: returnValue = "未设"; break;
                case UserStatus.Normal: returnValue = "正常"; break;
                case UserStatus.PendingApproval: returnValue = "待审"; break;
                case UserStatus.Removed: returnValue = "删除"; break;
            }
            return returnValue;
        }

    }
}
